<!DOCTYPE html>
<html>

<head>

	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">


	<title> - 密码修改</title>
	<meta name="keywords" content="">
	<meta name="description" content="">

	<link rel="shortcut icon" href="__PUBLIC__/admin/favicon.ico"> <link href="__PUBLIC__/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__PUBLIC__/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">

	<link href="__PUBLIC__/admin/css/animate.css" rel="stylesheet">
	<link href="__PUBLIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">
	<!--[if lt IE 9]>
	<meta http-equiv="refresh" content="0;ie.html" />
	<![endif]-->
	<!-- <script>if(window.top !== window.self){ window.top.location = window.location;}</script> -->
</head>
<!-- <include file="Admin@Index:cache" /> -->
<body class="gray-bg">

<div class="middle-box text-center loginscreen  animated fadeInDown">
	<div>
		<div>

			<h1 class="logo-name" style="font-size: 30px;letter-spacing: 1px;;color: #ccc;
  text-shadow: -1px -1px 0 #fff,1px 1px 0 #333,1px 1px 0 #444;">修改登录密码</h1>

		</div>
		<h3></h3>

		<form class="m-t" role="form" action="">
			<div class="form-group">
				<input type="text" id="old_pwd" autocomplete="off" class="form-control" placeholder="原密码" required="">
			</div>
			<div class="form-group">
				<input type="text"  id="new_pwd" autocomplete="off" class="form-control" placeholder="新密码" required="">
			</div>
			<button type="button" id="login_btn" class="btn btn-primary block full-width m-b">确定修改</button>

		</form>
	</div>
</div>

<!-- 全局js -->
<script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>

<script src="__PUBLIC__/admin/js/plugins/layer/layer.min.js"></script>
<script>
	$('#login_btn').on('click', function(){
//		layer.alert('123');
		var old_pwd=$('#old_pwd').val();
		var new_pwd=$('#new_pwd').val();
		var tourl="__MODULE__/Login/login";
		layer.load(2);
		$.post('__MODULE__/Login/modify_pwd',{old_pwd:old_pwd,new_pwd:new_pwd},function(data){
			layer.closeAll();
			if(data.code=='1001'){
				layer.alert(data.result,function(){
					parent.location.reload()
					parent.layer.closeAll();
				});
			}else{
				layer.alert(data.result,{title:'提示框',icon:0});
			}
		});
	})

</script>


</body>

</html>
